package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_ZFXMZT"
 *     
*/
public class ZfzbZfxmzt implements Serializable {

    /** identifier field */
    private String xh;

    /** nullable persistent field */
    private String xmbh;

    /** nullable persistent field */
    private String nd;

    /** nullable persistent field */
    private String yf;

    /** nullable persistent field */
    private String dyjbr;

    /** nullable persistent field */
    private String dyjbrDh;

    /** nullable persistent field */
    private String dejbr;

    /** nullable persistent field */
    private String dejbrDh;

    /** nullable persistent field */
    private BigDecimal zfje;

    /** nullable persistent field */
    private BigDecimal sqje;

    /** nullable persistent field */
    private String nrzjzfrq;

    /** nullable persistent field */
    private String szwz;

    /** nullable persistent field */
    private String xmzt;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZfzbZfxmzt(String xh, String xmbh, String nd, String yf, String dyjbr, String dyjbrDh, String dejbr, String dejbrDh, BigDecimal zfje, BigDecimal sqje, String nrzjzfrq, String szwz, String xmzt, String zt1, String zt2) {
        this.xh = xh;
        this.xmbh = xmbh;
        this.nd = nd;
        this.yf = yf;
        this.dyjbr = dyjbr;
        this.dyjbrDh = dyjbrDh;
        this.dejbr = dejbr;
        this.dejbrDh = dejbrDh;
        this.zfje = zfje;
        this.sqje = sqje;
        this.nrzjzfrq = nrzjzfrq;
        this.szwz = szwz;
        this.xmzt = xmzt;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZfzbZfxmzt() {
    }

    /** minimal constructor */
    public ZfzbZfxmzt(String xh) {
        this.xh = xh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="XH"
     *         
     */
    public String getXh() {
        return this.xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    /** 
     *            @hibernate.property
     *             column="XMBH"
     *             length="50"
     *         
     */
    public String getXmbh() {
        return this.xmbh;
    }

    public void setXmbh(String xmbh) {
        this.xmbh = xmbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="YF"
     *             length="2"
     *         
     */
    public String getYf() {
        return this.yf;
    }

    public void setYf(String yf) {
        this.yf = yf;
    }

    /** 
     *            @hibernate.property
     *             column="DYJBR"
     *             length="30"
     *         
     */
    public String getDyjbr() {
        return this.dyjbr;
    }

    public void setDyjbr(String dyjbr) {
        this.dyjbr = dyjbr;
    }

    /** 
     *            @hibernate.property
     *             column="DYJBR_DH"
     *             length="50"
     *         
     */
    public String getDyjbrDh() {
        return this.dyjbrDh;
    }

    public void setDyjbrDh(String dyjbrDh) {
        this.dyjbrDh = dyjbrDh;
    }

    /** 
     *            @hibernate.property
     *             column="DEJBR"
     *             length="30"
     *         
     */
    public String getDejbr() {
        return this.dejbr;
    }

    public void setDejbr(String dejbr) {
        this.dejbr = dejbr;
    }

    /** 
     *            @hibernate.property
     *             column="DEJBR_DH"
     *             length="30"
     *         
     */
    public String getDejbrDh() {
        return this.dejbrDh;
    }

    public void setDejbrDh(String dejbrDh) {
        this.dejbrDh = dejbrDh;
    }

    /** 
     *            @hibernate.property
     *             column="ZFJE"
     *             length="16"
     *         
     */
    public BigDecimal getZfje() {
        return this.zfje;
    }

    public void setZfje(BigDecimal zfje) {
        this.zfje = zfje;
    }

    /** 
     *            @hibernate.property
     *             column="SQJE"
     *             length="16"
     *         
     */
    public BigDecimal getSqje() {
        return this.sqje;
    }

    public void setSqje(BigDecimal sqje) {
        this.sqje = sqje;
    }

    /** 
     *            @hibernate.property
     *             column="NRZJZFRQ"
     *             length="14"
     *         
     */
    public String getNrzjzfrq() {
        return this.nrzjzfrq;
    }

    public void setNrzjzfrq(String nrzjzfrq) {
        this.nrzjzfrq = nrzjzfrq;
    }

    /** 
     *            @hibernate.property
     *             column="SZWZ"
     *             length="2"
     *         
     */
    public String getSzwz() {
        return this.szwz;
    }

    public void setSzwz(String szwz) {
        this.szwz = szwz;
    }

    /** 
     *            @hibernate.property
     *             column="XMZT"
     *             length="2"
     *         
     */
    public String getXmzt() {
        return this.xmzt;
    }

    public void setXmzt(String xmzt) {
        this.xmzt = xmzt;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("xh", getXh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbZfxmzt) ) return false;
        ZfzbZfxmzt castOther = (ZfzbZfxmzt) other;
        return new EqualsBuilder()
            .append(this.getXh(), castOther.getXh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getXh())
            .toHashCode();
    }

}
